package com.aiyige.model.moment.backup;

import java.io.Serializable;

public class MomentOnsaleBackup implements Serializable {
    Double price = null;
    Long startTime = null;
    Long endTime = null;

    public MomentOnsaleBackup() {
    }

    public MomentOnsaleBackup(MomentOnsaleBackup other) {
        if (other == null) {
            this.price = null;
            this.startTime = null;
            this.endTime = null;
        } else {
            this.price = other.price;
            this.startTime = other.startTime;
            this.endTime = other.endTime;
        }
    }

    public boolean hasLinePrice() {
        return price != null;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }
}
